#include "InnerWidget.h"

#include <qlayout.h>
#include <qlabel.h>
#include <qcursor.h>
#include <qpixmap.h>

#include "MyWidget.h"

InnerWidget::InnerWidget(QWidget * parent, const char * name)
	: QWidget(parent, name)
{
	QColor bgColor(146, 179, 232);
	setPaletteBackgroundColor(bgColor);

	QHBoxLayout * pHBoxLayout = new QHBoxLayout(this);
	pHBoxLayout->setMargin(6);
	pHBoxLayout->setSpacing(7);

	QLabel * pLabelChat = new QLabel(this);
	pLabelChat->setPixmap(QPixmap::fromMimeSource(QString("images/chat.png")));
	pLabelChat->setCursor(Qt::PointingHandCursor);
	pHBoxLayout->addWidget(pLabelChat);

	QLabel * pLabelCall = new QLabel(this);
	pLabelCall->setPixmap(QPixmap::fromMimeSource(QString("images/call.png")));
	pLabelCall->setCursor(Qt::PointingHandCursor);
	pHBoxLayout->addWidget(pLabelCall);

	QLabel * pLabelVoiceMail = new QLabel(this);
	pLabelVoiceMail->setPixmap(QPixmap::fromMimeSource(QString("images/send_voicemail.png")));
	pLabelVoiceMail->setCursor(Qt::PointingHandCursor);
	pHBoxLayout->addWidget(pLabelVoiceMail);

	pHBoxLayout->addStretch();

	QLabel * pLabelMenu = new QLabel(this);
	pLabelMenu->setPixmap(QPixmap::fromMimeSource(QString("images/menu.png")));
	pLabelMenu->setCursor(Qt::PointingHandCursor);
	pHBoxLayout->addWidget(pLabelMenu);
}

InnerWidget::~InnerWidget()	
{
//	qDebug("~InnerWidget");
}
